﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using KPIS.GERP.GIMS.MODEL;
using Telerik.Web.UI;
using KPIS.DBM;

namespace KPIS.GERP.GIMS.IBLL
{
    public interface IBLLDocument
    {
        IList<DocumentInfo> GetDocument(int seq, string table_name, string field_name, string pk_field);
        void InsertFileToDB(DocumentInfo info, string table_name, string fk_field, int seq);
        void InsertFileToDB(IList<DocumentInfo> infoList, string table_name, string fk_field, int seq, IDBManager dbManagerTrans);
        void DeleteFileFromDB(IList<DocumentInfo> infoList, string table_name, string pk_field);
        void DownloadDocument(string table_name, string pk_field, string seq, System.Web.UI.Page p, string DocPath, string FolderName);
        IList<DocumentInfo> GetDocumentHistory(int PrSeq);
        IList<DocumentInfo> GetDocumentPprHistory(int PoSeq);
        IList<DocumentInfo> GetDocumentPrHistory(int PoSeq);
    }
}
